<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>邀请优惠券</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-753910467">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/manage/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/manage/js/jquery-1.7.1.min.js"></script>

	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/manage//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/manage/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/manage/css/define.css"/>
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-753910467";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/manage/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/manage/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("invitationcoupon.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		THIS.setData(protocol.data);
  		
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>

<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#invitationcouponForm").form({
		"":function(){}
		,"invitCoupon.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"invitCoupon.commodity":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"invitCoupon.recomDiscount":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "推荐人折扣输入格式错误";
		}
		,"invitCoupon.invitcOldDiscount":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "老客户折扣输入格式错误";
		}
		,"invitCoupon.invitcOldTuiDiscount":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "老客推荐折扣输入格式错误";
		}
		,"invitCoupon.expiryDate":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "有效期截止日不能为空";
			}
		}
		,"invitCoupon.wechatTitle":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "微信分享标题最大长度为32个字符";
		}
		,"invitCoupon.wechatPic":function(el){
		}
		,"invitCoupon.invitcCycle":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "分享周期不能为空";
			}
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"invitCoupon.putIn":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择是否投放";
			}
		}
		,"invitCoupon.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"invitCoupon.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"invitCoupon.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
		,"invitCoupon.merchant":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>
 
<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>





<form lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'}}" class="form editform edittype_{{edittype}}" ref="InvitCoupon" id="invitationcouponForm" name="invitationcouponForm" target="jsoniframe" action="invitationcoupon.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写邀请优惠券相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
					
				
				
	{{lz.set("id_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{invitCoupon$id}}">
				{{invitCoupon$id}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$id}}">
			<input type="hidden" value="{{lz.htm(invitCoupon.id)}}" name="invitCoupon.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{invitCoupon.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.id$||invitCoupon.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
					
				
				
	{{lz.set("commodity_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"commodity"))))}}
	{{lz.set("commodity_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$commodity}}
	<dl lz:if="{{commodity_editable||commodity_readonly}}" class="commodity  " major  ref="commodity">
		<dt>适用商品:</dt>
		<dd lz:if="{{commodity_editable}}" input="query">
			<lz:block lz:if="{{invitCoupon$commodity}}">
				{{invitCoupon$commodity}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$commodity}}">
		 			<input title="请输入商品信息商品名称进行查询" class="combox narrow" action="/manage/query.Commodity.do?value={param}" type="text" id="commodity" name="invitCoupon.commodity" text="{{lz.html(invitCoupon.commodity$||invitCoupon.commodity)}}" value="{{lz.htm(invitCoupon.commodity)}}" />
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{commodity_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="commodity">{{invitCoupon.commodity}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.commodity$||invitCoupon.commodity)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$commodity}}
					
				
				
	{{lz.set("recomDiscount_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"recomDiscount"))))}}
	{{lz.set("recomDiscount_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$recomDiscount}}
	<dl lz:if="{{recomDiscount_editable||recomDiscount_readonly}}" class="recomDiscount  " major  ref="recomDiscount">
		<dt>推荐人折扣:</dt>
		<dd lz:if="{{recomDiscount_editable}}" input="menoy">
			<lz:block lz:if="{{invitCoupon$recomDiscount}}">
				{{invitCoupon$recomDiscount}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$recomDiscount}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="invitCoupon.recomDiscount" id="recomDiscount"  value="{{lz.htm(invitCoupon.recomDiscount)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入邀请优惠券的推荐人折扣</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{recomDiscount_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="recomDiscount">{{invitCoupon.recomDiscount}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.recomDiscount$||invitCoupon.recomDiscount)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$recomDiscount}}
					
				
				
	{{lz.set("invitcOldDiscount_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"invitcOldDiscount"))))}}
	{{lz.set("invitcOldDiscount_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$invitcOldDiscount}}
	<dl lz:if="{{invitcOldDiscount_editable||invitcOldDiscount_readonly}}" class="ribs invitcOldDiscount  " major  ref="invitcOldDiscount">
		<dt>老客户折扣:</dt>
		<dd lz:if="{{invitcOldDiscount_editable}}" input="menoy">
			<lz:block lz:if="{{invitCoupon$invitcOldDiscount}}">
				{{invitCoupon$invitcOldDiscount}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$invitcOldDiscount}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="invitCoupon.invitcOldDiscount" id="invitcOldDiscount"  value="{{lz.htm(invitCoupon.invitcOldDiscount)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入邀请优惠券的老客户折扣</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{invitcOldDiscount_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="invitcOldDiscount">{{invitCoupon.invitcOldDiscount}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.invitcOldDiscount$||invitCoupon.invitcOldDiscount)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$invitcOldDiscount}}
					
				
				
	{{lz.set("invitcOldTuiDiscount_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"invitcOldTuiDiscount"))))}}
	{{lz.set("invitcOldTuiDiscount_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$invitcOldTuiDiscount}}
	<dl lz:if="{{invitcOldTuiDiscount_editable||invitcOldTuiDiscount_readonly}}" class="ribs invitcOldTuiDiscount  " major  ref="invitcOldTuiDiscount">
		<dt>老客推荐折扣:</dt>
		<dd lz:if="{{invitcOldTuiDiscount_editable}}" input="menoy">
			<lz:block lz:if="{{invitCoupon$invitcOldTuiDiscount}}">
				{{invitCoupon$invitcOldTuiDiscount}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$invitcOldTuiDiscount}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="invitCoupon.invitcOldTuiDiscount" id="invitcOldTuiDiscount"  value="{{lz.htm(invitCoupon.invitcOldTuiDiscount)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入邀请优惠券的老客推荐折扣</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{invitcOldTuiDiscount_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="invitcOldTuiDiscount">{{invitCoupon.invitcOldTuiDiscount}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.invitcOldTuiDiscount$||invitCoupon.invitcOldTuiDiscount)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$invitcOldTuiDiscount}}
					
				
				
	{{lz.set("expiryDate_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"expiryDate"))))}}
	{{lz.set("expiryDate_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$expiryDate}}
	<dl lz:if="{{expiryDate_editable||expiryDate_readonly}}" class="expiryDate  " major  ref="expiryDate">
		<dt>有效期截止日:</dt>
		<dd lz:if="{{expiryDate_editable}}" input="date">
			<lz:block lz:if="{{invitCoupon$expiryDate}}">
				{{invitCoupon$expiryDate}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$expiryDate}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" class="date input narrow" maxlength="19" name="invitCoupon.expiryDate" id="expiryDate"  value="{{invitCoupon.expiryDate$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择邀请优惠券的有效期截止日</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{expiryDate_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="expiryDate">{{invitCoupon.expiryDate}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.expiryDate$||invitCoupon.expiryDate)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$expiryDate}}
					
				
				
	{{lz.set("wechatTitle_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"wechatTitle"))))}}
	{{lz.set("wechatTitle_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$wechatTitle}}
	<dl lz:if="{{wechatTitle_editable||wechatTitle_readonly}}" class="ribs wechatTitle  " major  ref="wechatTitle">
		<dt>微信分享标题:</dt>
		<dd lz:if="{{wechatTitle_editable}}" input="text">
			<lz:block lz:if="{{invitCoupon$wechatTitle}}">
				{{invitCoupon$wechatTitle}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$wechatTitle}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="invitCoupon.wechatTitle" id="wechatTitle"  value="{{lz.htm(invitCoupon.wechatTitle)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入邀请优惠券的微信分享标题</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{wechatTitle_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="wechatTitle">{{invitCoupon.wechatTitle}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.wechatTitle$||invitCoupon.wechatTitle)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$wechatTitle}}
					
				
				
	{{lz.set("wechatPic_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"wechatPic"))))}}
	{{lz.set("wechatPic_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$wechatPic}}
	<dl lz:if="{{wechatPic_editable||wechatPic_readonly}}" class="ribs wechatPic   wider" major  ref="wechatPic">
		<dt>微信分享图片:</dt>
		<dd lz:if="{{wechatPic_editable}}" input="image">
			<lz:block lz:if="{{invitCoupon$wechatPic}}">
				{{invitCoupon$wechatPic}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$wechatPic}}">
		    <input type="text" class="input" maxlength="128" size="32" name="invitCoupon.wechatPic" id="wechatPic"  value="{{lz.htm(invitCoupon.wechatPic)}}"/>
			<button type="button" onclick="$.upload({type:'img',callback:function(url){if(url)$('#wechatPic').val(url)}})" class="button">设置图片</button>
			<button type="button" onclick="$('#wechatPic').val('')" class="button">删除图片</button>
			<button type="button" onclick="$.thumb({url:$('#wechatPic').val()})" class="button">查看图片</button>
	 	 </lz:block>
	 	 
	 	 <em>请上传邀请优惠券的微信分享图片</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{wechatPic_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="wechatPic">{{invitCoupon.wechatPic}}</textarea>
		 		<span>
		 	<img lz:if="{{invitCoupon.wechatPic}}" onclick="$.thumb({url:this.src})" style="margin:10px;padding:1px;border:1px solid;" onload="if(this.width>this.height){this.width=96}else{this.height=96}" src="{{lz.htm(invitCoupon.wechatPic)}}"/>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$wechatPic}}
					
				
				
	{{lz.set("invitcCycle_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"invitcCycle"))))}}
	{{lz.set("invitcCycle_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$invitcCycle}}
	<dl lz:if="{{invitcCycle_editable||invitcCycle_readonly}}" class="invitcCycle  " major  ref="invitcCycle">
		<dt>分享周期:</dt>
		<dd lz:if="{{invitcCycle_editable}}" input="number">
			<lz:block lz:if="{{invitCoupon$invitcCycle}}">
				{{invitCoupon$invitcCycle}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$invitcCycle}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="invitCoupon.invitcCycle" id="invitcCycle"  value="{{lz.htm(invitCoupon.invitcCycle)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入邀请优惠券的分享周期</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{invitcCycle_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="invitcCycle">{{invitCoupon.invitcCycle}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.invitcCycle$||invitCoupon.invitcCycle)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$invitcCycle}}
					
				
				
	{{lz.set("putIn_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"putIn"))))}}
	{{lz.set("putIn_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$putIn}}
	<dl lz:if="{{putIn_editable||putIn_readonly}}" class="putIn  " major  ref="putIn">
		<dt>是否投放:</dt>
		<dd lz:if="{{putIn_editable}}" input="select">
			<lz:block lz:if="{{invitCoupon$putIn}}">
				{{invitCoupon$putIn}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$putIn}}">
		 	<select class="narrow" id="putIn" name="invitCoupon.putIn">
		 		<option value="">请选择</option>
				<option value="0" selected='{{invitCoupon.putIn=="0"?"selected":""}}'>不投放</option>
				<option value="1" selected='{{invitCoupon.putIn=="1"?"selected":""}}'>投放</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择邀请优惠券的是否投放</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{putIn_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="putIn">{{invitCoupon.putIn}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.putIn$||invitCoupon.putIn)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$putIn}}
					
				
				
	{{lz.set("updateTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{invitCoupon$updateTime}}">
				{{invitCoupon$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="invitCoupon.updateTime" id="updateTime"  value="{{invitCoupon.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择邀请优惠券的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{invitCoupon.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.updateTime$||invitCoupon.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
					
				
				
	{{lz.set("addTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{invitCoupon$addTime}}">
				{{invitCoupon$addTime}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="invitCoupon.addTime" id="addTime"  value="{{invitCoupon.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择邀请优惠券的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{invitCoupon.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.addTime$||invitCoupon.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
					
				
				
	{{lz.set("status_editable",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{invitCoupon$status}}">
				{{invitCoupon$status}}
			</lz:block>
			<lz:block lz:if="{{!invitCoupon$status}}">
		 	<select class="narrow" id="status" name="invitCoupon.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{invitCoupon.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{invitCoupon.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择邀请优惠券的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{invitCoupon.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitCoupon.status$||invitCoupon.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
					
				
				
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{invitCoupon.id}}" name="invitCoupon.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'}}">
				<button class="button" type="submit">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				
				
				
				
				
				
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/coupons/invitationcoupon.edit.html?edittype=update&id={{invitCoupon.id}}"'>
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					修改&nbsp;&nbsp;</button>
				
				
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>





 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>

</script>
</html>